package cn.xianshu.shopping_cart.service;

import cn.xianshu.basic.service.IBasicService;
import cn.xianshu.shopping_cart.controller.ShoppingCartController;
import cn.xianshu.shopping_cart.domain.ShoppingCart;

import java.util.List;

public interface IShoppingCartService extends IBasicService<ShoppingCartController> {

    /**
     * 加入购物车
     * , Integer state, Integer quantity, Date addTime, Date updateTime
     * @param id
     */
    void addcart(Long id);

    /**
     * 展示数据
     * @return
     */
    ShoppingCart cartdata();

    void remove(Long id);

    List<ShoppingCart> cal(List<Long> ids);

}
